<template>
  <div>
    <el-carousel :interval="4000" type="card" height="200px">
      <el-carousel-item v-for="item in 6" :key="item">
        <h3 class="medium">{{ item }}</h3>
      </el-carousel-item>
    </el-carousel>
    <div>
      <el-row :gutter="20">
        <el-col :span="6"
          ><div class="grid-content bg-purple">今日要闻</div></el-col
        >
        <el-col :span="6"
          ><div class="grid-content bg-purple">劲歌金曲</div></el-col
        >
        <el-col :span="6"
          ><div class="grid-content bg-purple">流行前线</div></el-col
        >
        <el-col :span="6"
          ><div class="grid-content bg-purple">动听经典</div></el-col
        >
      </el-row>
    </div>
  </div>
</template>

<script>
export default {
  name: "HomePage"
};
</script>

<style scoped>
.el-carousel__item h3 {
  color: #475669;
  font-size: 14px;
  opacity: 0.75;
  line-height: 200px;
  margin: 0;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}

.el-row {
  margin-bottom: 20px;
  &:last-child {
    margin-bottom: 0;
  }
}
.el-col {
  border-radius: 4px;
}
.bg-purple-dark {
  background: #99a9bf;
}
.bg-purple {
  background: #d3dce6;
}
.bg-purple-light {
  background: #e5e9f2;
}
.grid-content {
  border-radius: 4px;
  min-height: 320px;
}
.row-bg {
  padding: 10px 0;
  background-color: #f9fafc;
}
</style>
